﻿@model DHQGHN.PM2.Models.EnumeratorModel
@{
    //ViewBag.Title = "Quản lý Admin Xã/Phường";
    //ViewBag.Group = "Quản lý chung";
    //Layout = "~/Views/Shared/_LayoutAdmin.cshtml";
    DHQGHN.PM2.Security.MyPrincipalSerializeModel myUser = Session["UserInfo"] as DHQGHN.PM2.Security.MyPrincipalSerializeModel;
}
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/jqueryval")
<script src="~/Scripts/jquery.validate.js"></script>
<script src="~/Scripts/jquery.validate.unobtrusive.js"></script>
<script src="@Url.Content("~/Scripts/bootstrap.min.js")" type="text/javascript"></script>

@using (Html.BeginForm("CreateAdmin", "Enumerator", FormMethod.Post, new { id = "CreateAdmin" }))
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)
    <div class="row">
        <div class="col-md-12">
            <fieldset style="">
                <legend style="color: #2D5F8B">Tạo mới Quản Trị Viên cấp Xã - Phường</legend>
                <div>
                    <div class="row">
                        <div class="col-md-4">
                            @Html.Label("Nhóm", new { @class = "text-center" }) <font size="3" color="red" style="visibility:hidden;">*</font>
                        </div>
                        <div class="col-md-8">
                            @Html.TextBox("GROUP", "Quản trị cấp Xã - Phường", new { @class = "form-control form-control-add ", style = " ", @readOnly = true })
                            @Html.HiddenFor(model => model.GROUPCODE, new { @Value = "AX", @id = "GroupCode" })
                        </div>
                    </div>
                    <div class="row" style="margin-top:5px;">
                        <div class="col-md-4">
                            @Html.Label("Cấp Tỉnh", new { @class = "text-center" }) <font size="3" color="red">*</font>
                        </div>
                        <div class="col-md-8">
                            @Html.DropDownList("lv1", ViewBag.ListTinhSelected as List<SelectListItem>, new {@id="Level1t", @class = "form-control  form-control-add ", style = "", @disabled = "disabled" })
                        </div>
                    </div>
                    <div class="row" style="margin-top:5px;">
                        <div class="col-md-4">
                            @Html.Label("Cấp Huyện", new { @class = "text-center" }) <font size="3" color="red">*</font>
                        </div>
                        <div class="col-md-8">
                            @Html.DropDownList("lv2", ViewBag.ListHuyenSelected as List<SelectListItem>, new {@id="Level2h", @class = "form-control  form-control-add ", style = "", @disabled = "disabled" })
                        </div>
                    </div>
                    <div class="row" style="margin-top:5px;">
                        <div class="col-md-4">
                            @Html.Label("Cấp Xã", new { @class = "text-center" }) <font size="3" color="red">*</font>
                        </div>
                        <div class="col-md-8">
                            @Html.DropDownListFor(model => model.ADM_CODE, ViewBag.ListXa as List<SelectListItem>, new {@id="Level3x", @class = "form-control  form-control-add ", style = "" })
                            <span style="color: red;">@Html.ValidationMessageFor(model => model.ADM_CODE)</span>
                        </div>
                    </div>
                    <div class="row" style="margin-top:5px;">
                        <div class="col-md-4">
                            @Html.Label("Họ tên", new { @class = "text-center" }) <font size="3" color="red">*</font>
                        </div>
                        <div class="col-md-8">

                            @Html.TextBoxFor(model => model.FULL_NAME, "", new { @class = "form-control form-control-add ", style = "", placeholder = "nhập họ tên" })
                            <span style="color: red;">@Html.ValidationMessageFor(model => model.FULL_NAME)</span>
                        </div>
                    </div>
                    <div class="row" style="margin-top:5px;">
                        <div class="col-md-4">
                            @Html.Label("Tên đăng nhập", new { @class = "text-center" }) <font size="3" color="red">*</font>
                        </div>
                        <div class="col-md-8">
                            @Html.TextBoxFor(model => model.USERNAME, "", new { @class = "form-control form-control-add ", style = "", placeholder = "tên đăng nhập" })
                            <span style="color: red;">@Html.ValidationMessageFor(model => model.USERNAME)</span>
                        </div>

                    </div>
                    <div class="row" style="margin-top:5px;">
                        <div class="col-md-4">
                            @Html.LabelFor(m => m.EMAIL, new { @class = "text-center" })<font size="3" color="red">*</font>
                        </div>
                        <div class="col-md-8">
                            @Html.TextBoxFor(m => m.EMAIL, new { @class = "form-control form-control-add", style = "", placeholder = "Email của tài khoản" })
                            <span style="color: red;">@Html.ValidationMessageFor(m => m.EMAIL)</span>
                        </div>
                    </div>
                    <div class="row" style="margin-top:5px;">
                        <div class="col-md-4">
                            @Html.Label("Mô tả", new { @class = "text-center" }) <font size="3" color="red" style="visibility:hidden;">*</font>
                        </div>
                        <div class="col-md-8">
                            @Html.TextAreaFor(m => m.DESCRIPTIONS, new { @class = "form-control form-control-add  ", style = "", @rows = 3 })
                        </div>
                    </div>
                </div>
            </fieldset>
        </div>
    </div>    
}